package ooday04;
/** 成员内部类的演示 */
public class InnerClassDemo {
    public static void main(String[] args) {
       Mama mama = new Mama();
       //Baby bb = new Baby();//编译错误, 内部类对外不具备可见性
    }
}
class Mama{//外部类
    String name;
    void create(){
        Baby bb = new Baby();
    }
   ;
    class Baby{//内部类
        void show(){
            System.out.println(name);
            System.out.println(Mama.this.name);
        }
    }
}